package com.xingu.xg.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("tree_node")
public class TreeNode {
    // 节点ID
    @TableId(type = IdType.AUTO)
    private Long id;
    // 节点名称
    private String name;
    // 父节点ID
    private Long parentId;
    private Short depth;
    private Short treeOrder;
    // 不是根节点id，而是当前树型结构的id
    private Long treeId;
    private String unit;
    private Integer quantity;
    private BigDecimal supplyPrice;
    private BigDecimal installPrice;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
}
